/**
 * 地址简写
 * @param hex 地址
 * @param length 截取长度
 * @returns 
 */
export function shortenHex(hex: string, length = 4): string {
    return `${hex.substring(0, length + 2)}…${hex.substring(hex.length - length)}`
}